﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JeanFish.Blog.Storage
{
    public class BlogProviderSettingSection : ConfigurationSection
    {
        private const string providersProperty = "providers";
        private const string defaultProviderProperty = "defaultProvider";

        [ConfigurationProperty(providersProperty)]
        public ProviderSettingsCollection Providers
        {
            get
            {
                return base[providersProperty] as ProviderSettingsCollection;
            }
        }
        [ConfigurationProperty(defaultProviderProperty, IsRequired = true)]
        public string DefaultProvider
        {
            get
            {
                return base[defaultProviderProperty] as string;
            }
            set
            {
                base[defaultProviderProperty] = value;
            }
        }
    }
}
